<template>
  <div>
    <h3>{{msg}}</h3>
    <inject></inject>
  </div>
</template>

<script>
import inject from './base2/inject.vue'
export default {
  name: "provide",
    components: {
        "inject": inject,
    },
  data() {
    return {
      msg: "provide",
    };
  },
  provide: function () {
    return {
      getMap: "父组件传承",
    };
  },
};
</script>